<?php if(!IS_AJAX){?>

<include file="Public:header" />
<div class="row">

<div class="col-sm-12 col-md-12 col-lg-12">

    <div class="panel">
      <header class="panel-heading"> 查找</header>
      <div class="panel-body">
        <form id="ajaxdatalistform" action="">
            <div>

            </div>
          <div class="input-group m-bot15">
        
            <input class="form-control" type="text" onclick="WdatePicker();" onChange="$('#orderform').attr('action','{:U('order_list')}'+'?time='+$(this).val())" name="time" >
            <span class="input-group-btn">
            <button type="button" onClick="$('#ajaxdatalistform').trigger('submit');$('#orderform').trigger('submit');" class="btn btn-default"><i class="fa fa-search"></i></button>
            </span> </div>
        </form>

      </div>
    </div>
  </div>
  <div class="col-sm-12 col-md-12 col-lg-12">
    <section class="panel">
      <div class="panel-body">
        <table class="table-bordered table" width="100%" border="0" cellspacing="0" cellpadding="0">
 <thead>
 <tr>
        <tr>
                <td height="21" align="center">当日营业额</td>
                <td align="center">购买次数</td>
                <td align="center">时间</td>

            </tr>
</thead>
          <tbody class="ajaxdatalist" id="ajaxdatalist">
            <?php }?>
            <?php if(IS_AJAX){?>
            <!-- 数据主体 -->



        <notempty name="list">
         <volist name="list" id="vo">
              <tr class="data_list">

                    <td align="center">{$vo.total}</td>
                    <td align="center">{$vo.count}</td>
                    <td align='center'>{$vo.date}</td>



                </tr>
         </volist>
         <else/>
            <tr>
                <td colspan="9" align="center">暂无营业信息</td>
            </tr>
        </notempty>




           <?php }?>
            <!-- 数据主体结束 -->
            <?php if(!IS_AJAX){?>
          </tbody>
        </table>








        
      </div>
      <div id="ajaxdatalistpages"></div>
    </section>

	<section class="panel">
			<div class="panel">
				

					<form action="<?php echo U('order_list') ?>" id="orderform"></form>
					<div id="order"></div>

				
				
				<div id="orderpages" style="text-align:center"></div>
          
		</section>


  </div>

</div>
<include file="Public:footer" />
<script>


	   $('#order').ajaxlist();
	 
	   
	   
  </script>
<style>
    .option a.btn{margin-top:5px;}
</style>

</body></html><?php }?>

